wayland: Fix argument's constness
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 6 Dec 2022 21:41:29 +0000 (21:41 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 6 Dec 2022 21:50:30 +0000 (21:50 +0000)
The compiler was pointing out we were dropping the const modifier.

gdk/wayland/gdkselection-wayland.c

index 6fbdb5e50df8944489d40442eb16b0f3e8a0bc37..672ae1c0a36d823c69c4bcad1eb057d2095b42bc 100644 (file)
@@ -348,7 +348,7 @@ stored_selection_new (GdkWaylandSelection *wayland_selection,
 static void
 stored_selection_add_data (StoredSelection *stored_selection,
                            GdkPropMode      mode,
-                           guchar          *data,
+                           const guchar    *data,
                            gsize            data_len)
 {
   if (mode == GDK_PROP_MODE_REPLACE)